<?php



namespace frontend\controllers;

//如果控制器想要实现rest的风格url  要继承ActiveController
class RestController extends \yii\rest\ActiveController{
    //put your code here
   public $modelClass="frontend\models\Goods"; 
    
    
    
}
